/**
 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package fr.smile.liferay.portlet.news.service;

/**
 * <p>
 * This class is a wrapper for {@link NewsEntryLocalService}.
 * </p>
 *
 * @author    Brian Wing Shun Chan
 * @see       NewsEntryLocalService
 * @generated
 */
public class NewsEntryLocalServiceWrapper implements NewsEntryLocalService {
	public NewsEntryLocalServiceWrapper(
		NewsEntryLocalService newsEntryLocalService) {
		_newsEntryLocalService = newsEntryLocalService;
	}

	/**
	* Adds the news entry to the database. Also notifies the appropriate model listeners.
	*
	* @param newsEntry the news entry to add
	* @return the news entry that was added
	* @throws SystemException if a system exception occurred
	*/
	public fr.smile.liferay.portlet.news.model.NewsEntry addNewsEntry(
		fr.smile.liferay.portlet.news.model.NewsEntry newsEntry)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.addNewsEntry(newsEntry);
	}

	/**
	* Creates a new news entry with the primary key. Does not add the news entry to the database.
	*
	* @param entryId the primary key for the new news entry
	* @return the new news entry
	*/
	public fr.smile.liferay.portlet.news.model.NewsEntry createNewsEntry(
		long entryId) {
		return _newsEntryLocalService.createNewsEntry(entryId);
	}

	/**
	* Deletes the news entry with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param entryId the primary key of the news entry to delete
	* @throws PortalException if a news entry with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public void deleteNewsEntry(long entryId)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		_newsEntryLocalService.deleteNewsEntry(entryId);
	}

	/**
	* Deletes the news entry from the database. Also notifies the appropriate model listeners.
	*
	* @param newsEntry the news entry to delete
	* @throws SystemException if a system exception occurred
	*/
	public void deleteNewsEntry(
		fr.smile.liferay.portlet.news.model.NewsEntry newsEntry)
		throws com.liferay.portal.kernel.exception.SystemException {
		_newsEntryLocalService.deleteNewsEntry(newsEntry);
	}

	/**
	* Performs a dynamic query on the database and returns the matching rows.
	*
	* @param dynamicQuery the dynamic query to search with
	* @return the matching rows
	* @throws SystemException if a system exception occurred
	*/
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.dynamicQuery(dynamicQuery);
	}

	/**
	* Performs a dynamic query on the database and returns a range of the matching rows.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param dynamicQuery the dynamic query to search with
	* @param start the lower bound of the range of model instances to return
	* @param end the upper bound of the range of model instances to return (not inclusive)
	* @return the range of matching rows
	* @throws SystemException if a system exception occurred
	*/
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.dynamicQuery(dynamicQuery, start, end);
	}

	/**
	* Performs a dynamic query on the database and returns an ordered range of the matching rows.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param dynamicQuery the dynamic query to search with
	* @param start the lower bound of the range of model instances to return
	* @param end the upper bound of the range of model instances to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching rows
	* @throws SystemException if a system exception occurred
	*/
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.dynamicQuery(dynamicQuery, start, end,
			orderByComparator);
	}

	/**
	* Counts the number of rows that match the dynamic query.
	*
	* @param dynamicQuery the dynamic query to search with
	* @return the number of rows that match the dynamic query
	* @throws SystemException if a system exception occurred
	*/
	public long dynamicQueryCount(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.dynamicQueryCount(dynamicQuery);
	}

	/**
	* Gets the news entry with the primary key.
	*
	* @param entryId the primary key of the news entry to get
	* @return the news entry
	* @throws PortalException if a news entry with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public fr.smile.liferay.portlet.news.model.NewsEntry getNewsEntry(
		long entryId)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.getNewsEntry(entryId);
	}

	/**
	* Gets a range of all the news entries.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of news entries to return
	* @param end the upper bound of the range of news entries to return (not inclusive)
	* @return the range of news entries
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<fr.smile.liferay.portlet.news.model.NewsEntry> getNewsEntries(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.getNewsEntries(start, end);
	}

	/**
	* Gets the number of news entries.
	*
	* @return the number of news entries
	* @throws SystemException if a system exception occurred
	*/
	public int getNewsEntriesCount()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.getNewsEntriesCount();
	}

	/**
	* Updates the news entry in the database. Also notifies the appropriate model listeners.
	*
	* @param newsEntry the news entry to update
	* @return the news entry that was updated
	* @throws SystemException if a system exception occurred
	*/
	public fr.smile.liferay.portlet.news.model.NewsEntry updateNewsEntry(
		fr.smile.liferay.portlet.news.model.NewsEntry newsEntry)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.updateNewsEntry(newsEntry);
	}

	/**
	* Updates the news entry in the database. Also notifies the appropriate model listeners.
	*
	* @param newsEntry the news entry to update
	* @param merge whether to merge the news entry with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
	* @return the news entry that was updated
	* @throws SystemException if a system exception occurred
	*/
	public fr.smile.liferay.portlet.news.model.NewsEntry updateNewsEntry(
		fr.smile.liferay.portlet.news.model.NewsEntry newsEntry, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.updateNewsEntry(newsEntry, merge);
	}

	public fr.smile.liferay.portlet.news.model.NewsEntry addEntry(long userId,
		long classNameId, long classPK, java.lang.String title,
		java.lang.String description, java.lang.String content,
		java.util.Date displayDate, java.util.Date expirationDate)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.addEntry(userId, classNameId, classPK,
			title, description, content, displayDate, expirationDate);
	}

	public fr.smile.liferay.portlet.news.model.NewsEntry updateEntry(
		long entryId, java.lang.String title, java.lang.String description,
		java.lang.String content, java.util.Date displayDate,
		java.util.Date expirationDate)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.updateEntry(entryId, title, description,
			content, displayDate, expirationDate);
	}

	public void deleteEntry(fr.smile.liferay.portlet.news.model.NewsEntry entry)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		_newsEntryLocalService.deleteEntry(entry);
	}

	public void deleteEntry(long entryId)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		_newsEntryLocalService.deleteEntry(entryId);
	}

	public java.util.List<fr.smile.liferay.portlet.news.model.NewsEntry> findUnread(
		long userId, java.util.Map<java.lang.Long, long[]> scopes, int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.findUnread(userId, scopes, start, end);
	}

	public int countUnread(long userId,
		java.util.Map<java.lang.Long, long[]> scopes)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.countUnread(userId, scopes);
	}

	public java.util.List<fr.smile.liferay.portlet.news.model.NewsEntry> findAll(
		long classNameId, long classPK, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.findAll(classNameId, classPK, start, end);
	}

	public int countAll(long classNameId, long classPK)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _newsEntryLocalService.countAll(classNameId, classPK);
	}

	public void checkEntries()
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		_newsEntryLocalService.checkEntries();
	}

	public NewsEntryLocalService getWrappedNewsEntryLocalService() {
		return _newsEntryLocalService;
	}

	private NewsEntryLocalService _newsEntryLocalService;
}